﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DotNetExtensions.Core.Extensions
{
    public static class NumberExtensions
    {
        public static string ToHex(this int number, int minWidth = 6)
        {
            return Convert.ToString(number, 16).PadLeft(minWidth, '0');
        }
    }
}
